package org.niugang.bean;

import org.niugang.constant.LogServiceConstant;
import org.niugang.entity.LogEntity;

/**
 * 日志查询Bean Copyright: Copyright (c) 2018 863263957@qq.com
 * 
 * @ClassName: LogQueryBean.java
 * @version: v1.0.0
 * @author: niugang
 * @date: 2018年9月19日 上午11:44:25
 */
public class LogQueryBean extends LogEntity {

	private Integer pageNo = LogServiceConstant.DEFAULT_PAGE_NUMBER;
	/**
	 * 分页大小
	 */
	private Integer pageSize = LogServiceConstant.DEFAULT_PAGE_SIZE;
	/**
	 * 开始查询行
	 */
	private Integer startRecord;

	/**
	 * 定义查询字段
	 */
	private String[] queryField;

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getStartRecord() {
		return (pageNo - 1) * pageSize;
	}

	public void setStartRecord(Integer startRecord) {
		this.startRecord = startRecord;
	}

	public String[] getQueryField() {
		return queryField;
	}

	public void setQueryField(String... queryField) {
		this.queryField = queryField;
	}
}
